#!/usr/bin/env python
# -*- coding:utf-8 -*-
from redis_helper import RedisHelper
sub=RedisHelper()   #实例化订阅
subscriber=sub.subscribe()  #创建一个订阅者
while True:
    msg=subscriber.parse_response() #解析response，接收消息
    print msg
